package com.thyme.system.dao;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.thyme.system.vo.Iec61850IedVo;
import com.thyme.system.vo.Iec61850LdVo;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Options;
import org.springframework.stereotype.Repository;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author nana
 * @since 2021-03-24
 */
@Repository
public interface Iec61850LdDao extends BaseMapper<Iec61850LdVo> {
    @Options(useGeneratedKeys = true, keyProperty = "id", keyColumn = "id")
    @Insert("insert  into iec61850_LD (ld_inst_name,ld_inst_desc,iec61850_ied_id,sn,model,man_date,run_date) values (#{ldInstName},#{ldInstDesc},#{iec61850IedId},#{sn},#{model},#{manDate},#{runDate})")
    void insertBy(Iec61850LdVo iec61850LdVo);
}
